import Ajax from "@common/Request";

export default {
    save(param) {
        return Ajax[param.id ? 'put' : 'post']('/priceRecord', param)
    },
    list(param) {
        return Ajax.get('/priceRecord', param)
    },
    remove(id) {
        return Ajax.delete('/priceRecord/' + id);
    },
    select(param) {
        return Ajax.get('/priceRecord/select', param)
    },
    productList(param) {
        return Ajax.get('/priceRecord/product/list', param)
    },
    productSave(param) {
        return Ajax[ 'post']('/priceRecord/product/save', param)
    },
    showPrice(param) {
        return Ajax.get('/priceRecord/showPrice', param)
    },
    showPurchasePrice(param) {
        return Ajax.get('/priceRecord/show/purchase/price', param)
    },
}
